import request from '@/utils/request'


export function preliminaryProjectAdd(data) { //
    return request({
        url: '/project-quality/api/fullLifeEarly/add',
        method: 'POST',
        data,
    })
}
export function preliminaryProjectEdit(data) { //
    return request({
        url: '/project-quality/api/fullLifeEarly/edit',
        method: 'POST',
        data,
    })
}
//原 del
export function preliminaryProjectDelete(id) { //-删除
    return request({
        url: '/project-quality/api/fullLifeEarly/del/' + id,
        method: 'get',
    })
}
export function preliminaryProjectDetails(id) { //-详情
    return request({
        url: '/project-quality/api/fullLifeEarly/' + id,
        method: 'get',
    })
}
export function preliminaryProjectCateList(data) { //-分页
    return request({
        url: '/project-quality/api/fullLifeEarly/page',
        method: 'POST',
        data,
    })
}


/**
 * cate是台账管理设备的
 */
export function preliminaryProjectCateTree() { //-第一层树查询
    return request({
        url: '/project-quality/api/equipmentInfo/tree/facilityList',
        method: 'GET',
    })
}

export function preliminaryProjectCateTreeLazy(id) { //-树懒加载
    return request({
        url: '/project-quality/api/equipmentInfo/tree/facilityTree/' + id,
        method: 'GET',
    })
}
